﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>中南大学教学网--用户注册</title>
    <style type="text/css">
        body{
	    margin-left: 0px;
	    margin-top: 50px;
	    margin-right: 0px;
	    margin-bottom: 0px;
	    background-color: #EEF2FB;
        }
        .style1
        {
            width: 184px;
        }
        .style2
        {
            height: 23px;
            width: 184px;
        }
        .style3
        {
            height: 22px;
            width: 184px;
        }
    </style>
    <script type="text/javascript">
        var timer
        var winOpen

        function WinOpen() {
            winOpen = window.open('AddUserRole.aspx', '', 'width=500,height=600');    //弹出新窗口
            timer = window.setInterval("IfWindowClosed()", 500);
            return winOpen;
        }

        function IfWindowClosed() {
            if (winOpen.closed == true) {
                SubmitKeyClick();
                window.clearInterval(timer);
            }
        }

        function SubmitKeyClick() {
            document.all.FunName.value = "addRowToGridView()";
            document.forms[0].submit();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
       <asp:ScriptManager ID="sm" runat="server">
                    </asp:ScriptManager>
    <div>
<table align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="text-align:left ;">
                                <table align="center" cellpadding="0" cellspacing="0" >
                                    <tr>
                                        <td style="width: 94px; text-align: center;">
                                            <asp:Label ID="Label2" runat="server" Font-Size="9pt" Text="编号（教职工号）" 
                                                Width="135px"></asp:Label>
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_userid" runat="server"  Font-Size="9pt" Width="123px" 
                                                AutoPostBack="True" ontextchanged="btnTestID_Click"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px; height: 25px;">
                                <asp:Label ID="lbl_id" Font-Size="9pt" runat="server" ForeColor ="Red" ></asp:Label>
                                            
                                        </td>
                                        <input id="hide_userid" type="hidden" runat="server"/>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center;">
                                            <asp:Label ID="labLoginName" runat="server" Font-Size="9pt" Text="用户名" 
                                                Width="66px"></asp:Label>
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_LoginName" runat="server" Font-Size="9pt" Width="123px" 
                                                AutoPostBack="True" ontextchanged="btnTest_Click"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px; height: 25px;">
                                <asp:Label ID="lbl_name" runat="server" ForeColor ="Red" Font-Size="9pt" ></asp:Label>
                                            
                                        </td>
                                    </tr>
                                                                         <tr>
                                     
                                        <td style="width: 94px; text-align: center;font-size:9pt;">
                                       <asp:Label ID="Label7"  runat="server" text=" 所属学院" ></asp:Label>    
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:DropDownList  ID="ddl_Forg" runat="server" Font-Size="9pt"  
                                                Width="123px" onselectedindexchanged="ddlforg_SelectedIndexChanged" AutoPostBack="True">
                                                </asp:DropDownList>
                                                        
                                        </td>
                                        <td style="width: 149px">
                                            &nbsp;</td>
                                           
                                    </tr>
                              
                                     <tr>
                                        <td style="width: 94px; text-align: center;font-size:9pt;">
                                         <asp:Label ID="Label8"  runat="server" text=" 所属系" ></asp:Label>    
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:DropDownList  ID="ddl_Sorg" runat="server" Font-Size="9pt"  
                                                Width="123px"></asp:DropDownList>
                                        </td>
                                        <td style="width: 149px">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center;">
                                            <asp:Label ID="labPwd" runat="server" Font-Size="9pt" Text="密码" Width="27px"></asp:Label>
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_Pwd" runat="server" Font-Size="9pt" TextMode="Password" t 
                                                Width="123px" ontextchanged="txt_Pwd_TextChanged"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px">
                                            <asp:Label ID="lbl_pwd" runat="server" Font-Size="9pt" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center; height: 23px;">
                                            <asp:Label ID="labSecPwd" runat="server" Font-Size="9pt" Text="重复密码" 
                                                Width="52px"></asp:Label>
                                        </td>
                                        <td class="style2" style="text-align: left; ">
                                            <asp:TextBox ID="txt_SecPwd" runat="server" Font-Size="9pt" TextMode="Password" 
                                                Width="123px"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px; height: 23px;">
                                            <asp:CompareValidator ID="ccvPwd" runat="server" ControlToCompare="txt_Pwd" 
                                                ControlToValidate="txt_SecPwd" Font-Size="9pt" Width="134px" 
                                                ForeColor="Red">*您输入的密码必须一致</asp:CompareValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center;">
                                            <asp:Label ID="labTName" runat="server" Font-Size="9pt" Text="真实姓名" 
                                                Width="52px"></asp:Label>
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_TName" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center;">
                                            <asp:Label ID="labSex" runat="server" Font-Size="9pt" Text="性别" Width="27px"></asp:Label>
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:RadioButton ID="rb_Man" runat="server" Checked="True" GroupName="sex" 
                                                Text="男" />
                                            &nbsp;&nbsp;&nbsp;
                                            <asp:RadioButton ID="rb_Women" runat="server" GroupName="sex" Text="女" />
                                        </td>
                                        <td style="width: 149px">
                                        </td>
                                    </tr>
                                 

                                  
                                    <tr>
                                        <td style="width: 94px; text-align: center;font-size:9pt;">
                                       <asp:Label ID="Label9"  runat="server" text=" 手机" ></asp:Label>     
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_CelPhone" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center;font-size:9pt;">
                                          <asp:Label ID="lb1" text=" 固定电话" runat ="server" />
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_Tel" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center;font-size:9pt;">
                                           <asp:Label ID="lb2" text=" 住址" runat ="server" /> 
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_Address" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center;font-size:9pt;">
                                         <asp:Label ID="lb3" text=" QQ" runat ="server" />     
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_QQ" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 94px; text-align: center;font-size:9pt;">
                                       <asp:Label ID="lb4" text=" E-mail地址" runat ="server" />  
                                        </td>
                                        <td class="style1" style="text-align: left;">
                                            <asp:TextBox ID="txt_Email" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
                                        </td>
                                        <td style="width: 149px">
                                            <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                                                ControlToValidate="txt_Email" Font-Size="9pt" 
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                                Width="132px" ForeColor="Red">*您输入的E-mail地址格式不正确，请重新输入</asp:RegularExpressionValidator>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td rowspan="2" style="width: 149px;">
                                        </td>
                                        <td class="style3" style="text-align: left; ">
                                            &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        </td>
                                        <td style="width: 169px; text-align: left; height: 22px;">
                                            &nbsp; &nbsp; &nbsp;
                                        <input id="Hidden1" runat="server" type="hidden" />
                                        <input id="Hidden3" runat="server" type="hidden" />
                                            &nbsp;&nbsp;
                                        <input id="Hidden5" runat="server" type="hidden" />
                                            &nbsp;
                                        <input id="Hidden2" runat="server" type="hidden" />
                                        <input id="Hidden4" runat="server" type="hidden" />
                                        <input id="Hidden6" runat="server" type="hidden" />
                                        <input id="Hidden7" type="hidden" name="FunName" /> 
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>

    </div>
    <div>
        <table align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 110px; height: 23px;" >
                    <asp:Button ID="btn_Add" runat="server" Font-Size="9pt" 
                        onclick="btnRegister_Click" Text="提交" />
                </td>
                <td style="width: 110px; height: 23px;">
                             <asp:Button ID="bnt_back" runat="server" Font-Size="9pt"  Text="返回" 
                                 onclick="bnt_back_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
